<%@ include file="/common/taglibs.jsp"%>

<div class="jquery_tab_container">
    <span class="heading_tab advanced_link active tab1"><fmt:message key="codex.country"/></span>
</div>

<div class="jquery_tab">
    <div class="content_block"></div>
<form:form commandName="klient" method="post" action="listklient" id="listKlient" onsubmit="return validateCountry(this)">



    <p>
        <appfuse:label styleClass="left width50" key="assMark.assMarkCode"/>
        <form:input path="kod" id="kod" cssClass="input-medium left" cssErrorClass="input-medium left error" maxlength="1000"/>
        <form:errors path="kod" cssClass="fieldError left"/>
        <br class="clearboth" />
    </p>
    <p>
        <span class="left width50">Ime</span>
        <form:input path="ime" id="ime" cssClass="input-medium left" cssErrorClass="input-medium left error" maxlength="1000"/>
        <form:errors path="ime" cssClass="fieldError left"/>
        <br class="clearboth" />
    </p>
     <p>
        <appfuse:label styleClass="left width50" key="searchPerson.lastName"/>
        <form:input path="prezime" id="prezime" cssClass="input-medium left" cssErrorClass="input-medium left error" maxlength="1000"/>
        <form:errors path="prezime" cssClass="fieldError left"/>
        <br class="clearboth" />
    </p>
   

     <input type="submit" class="button" name="cancel" value="<fmt:message key="button.cancel"/>" onclick="bCancel=true"/>
</form:form>



     <display:table name="resultList" class="table" requestURI="" id="resultList" export="false" pagesize="25">

    <display:column href="novklient" media="html"
                    paramId="id" paramProperty="id" property="id" sortable="true" titleKey="field.name"/>
    <display:column property="kod" sortable="true" titleKey="assMark.assMarkCode"/>


    <display:column property="ime" sortable="true" titleKey="searchPerson.firstName"/>


    <display:column property="prezime" sortable="true" titleKey="searchPerson.lastName"/>
</display:table>
</div>
<script>
    
    function getParameterByName(name) {

    var match = RegExp('[?&]' + name + '=([^&]*)')
                    .exec(window.location.search);

    return match && decodeURIComponent(match[1].replace(/\+/g, ' '));

    }
    
    console.log(getParameterByName("id"));
    
</script>